package com.jiyun.fanxiao.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.fanxiao.mapper.FanxiaoMapper;
import com.jiyun.fanxiao.service.FanxiaoService;
import com.jiyun.pojo.school.Shool;
import com.jiyun.pojo.result.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 文件名:FanxiaoServiceImp
 * 创建者: 闫俊涛
 * 创建时间:2022/6/26 9:21
 * 描述:这是一个实例
 */
@Service
public class FanxiaoServiceImp  extends ServiceImpl<FanxiaoMapper,Shool> implements FanxiaoService {

   @Autowired
   private  FanxiaoMapper fanxiaoMapper;
    @Override
    public ResultVo insert(Shool shool) {
         fanxiaoMapper.insert(shool);
        System.out.println("添加的数据"+shool);
         return  new ResultVo(200,"添加成功",shool);
    }
}
